You can. Simply build the walls first, then place the foundations behind