While the greeting “To Whom it May Concern” is not impolite, it is also not the best choice for greetings in most cover letters. The phrase is a holdover from more formal and analog business practices. If you can, you should address the hiring manager by name.