You can build a house even in locked areas in Sims 4 by enabling a cheat code. To do this, type bb.enablefreebuild in the cheat input box and select an area.