Yes, you’ll need to make it a “multipolygon” relation. See https://wiki.openstreetmap.org/wiki/Multipolygon_Examples#Forest_with_lake_.28One_outer_and_one_inner_ring.29 for more details.