Yes, you can do this. It’s not usually recommended because roommates come and go, making the contractual process difficult or causing frequent modifications as they buy and sell their possessions.