Sure you can do that but if you can avoid it, it’s better to separate objects, considering the good practice rule “one feature, one OSM element”.