Unmarried couples are allowed to share hotel rooms providing they both are non-morrocan, as evidenced by your passport. Some hotels wont allow unmarried couples as a matter of personal discretion. What you do in your room is your own business. It is no problems, if you are not Moroccan, to be in the same room.