Visitors at hospital after birth

Is it bad that I want to make a list of people who can visit me at the hospital & if their name isn’t on it they can’t come visit? Would hospitals allow you to do that??