It's O.K. under stain (not that I have experience with that), however under paint it will shrink back.
I'm assuming that anything water-based would do the same.

I use heavy duty bog to fill damaged areas and holes that I'm going to paint over.
Hopefully somebody will chime in with some alternative for grain filling.

cheers, Mark.