You are supposed to be a guest staying at the hotel to get points and credit. Some hotels don't care, some do, so it depends on the property.
If you check in with them, and the room is in your name, they really won't know the difference, or if you check in and then pass the key to them.