It should be okay if you don't know the department or person you are sending it to. If you know you are going to send it to John Doe, then it would be "Mr. Doe, good morning." not "To whom it may concern:" And if you know the department, then you can say "Leader/Manager of Hiring Deparment." and sometimes people put that and might also add "or whom it may concern." So it really isn't a bad thing. It may be tedious for some people who read it, but it shouldn't be a bad thing. Just double check and look back at what you learned because I don't want to give you a wrong answer because I was taught differently. And if you didn't get my answer, it's true.
Hope I helped,
Darry