It depends. If your building isn't set up as a two-family - you need to get it rezoned by the buidling or housing authority in your town. THis will involve building permits, blueprints, inspections, etc.