AFAIK, it’s a pretty common practice in MLB. I remember seeing a lot of players with pine tar smeared on their helmets. Manny Ramirez, Vlad Guerrero, Orlando Cabrera and Darrin Erstad are a few off the top of my head.

Unless they’ve changed the rule recently.