I’d keep them separate. Sometimes it’s appropriate (as in, a gate is part of a fence) but in general I prefer to not attach things as any need to detach in the future makes maintenance very difficult.