Yes, an oil based primer will mitigate the problem. Two coats are better than one also, especially the end grains which are very absorbent.