Is there a 90 degree angle brick?
There are many different types. You can find them here: Bricklink - Brick Modified

There are also Brackets: Bricklink - Brackets

And you could use some of these Bricklink - Plate Modified  or, of course, these Bricklink - Hinges