I regularly do this while explaining this on the first night's check in. The caveat about a similar room category as noted applies.
I've even had hotels extend my platinum status to the second night (for lounge access), when my wife was only a gold. Entirely, it all depends on the hotel and their generosity