Yes but your mere refusal to allow entry to a room is not grounds for arrest if the police already have a warrant and can search it regardless of your permission.
Put another way, the police do not require you to produce the keys to the subject of a warrant, they will enter by force if necessary. It's perverse that technology is different only because the police have no means of forcible entry.