It's fine if you do it at the appropriate times.
For example, I always foliar feed to correct micronutrient (esp Mg) def.