The type of hands to play in a poker game depends on the game you play and other factors like your position in the hand, your stack, and the action at the table.
In a famous poker strategy article, professional player Jonathan Little shared which hands to play in poker and how to play marginal hands.