There is no hard rule about alignments and classes, or classes and races. The booksbook specifies generalities, and also gives counter examples. For example, in the Paladin class under the Oath of Vengence TennentsTenets (Pagepage 88 of the players handbookPlayer's Handbook), it says that Oath of Vengence Paladins are often Neutral or Lawful Neutral in alignment.
A neutral good tiefling rogue is perfectly acceptable.