Odd question bugging me

For those of you who’ve had babies before, do nurses knock in the maternity ward? For example: if my husband is getting changed in the hospital room, will nurses knock before entering or do they just walk in whenever they please?