Yes, you can legally convert your basement into an apartment, but you need to obtain the necessary permissions and follow safety regulations. If you break these rules and regulations it can lead to fines or legal issues. Also, it can affect the tenants who are residing in that apartment.