Dorm/apartment

I have recently recieved my housing assignment today and my friend, who is also going to Purdue, wants to live an apartment. He asked me to live with him. Am I violating any contract terms if I live in the apartment with him? Is is against the rules if I have a dorm but live elsewhere?