You should let your roommates know that you intend to keep and use illegal drugs in the apartment, and let them make an informed choice about whether or not they want to keep you as a roommate or find somebody else.
Nobody here can promise that your actions won't create problems for your roommates.

