No. You can use just one (to complete a flush or a straight, for instance). You can actually just play all five cards on the community board but you’ll be just splitting the pot with other players in a best-case scenario. There are other variants of poker where you must use both your hole cards, such as Pot-Limit Omaha.