Yes, you can certainly do that. I am always traveling with co-workers, and I often pay for their rooms since they don't have a points-earning credit card, but they still are able to earn MR points for the stay. Win-win.
Rarely, I have had a front desk clerk give me some resistance, but that is when we are staying in separate rooms. I don't think you will have any problems at all since you are staying together.