Have all of the presidents been married?

No. There was one US President, James Buchanan who never took a wife.