It can be done although I haven't done it myself, I've always taken the head off.
I'm aware of 2 methods, first is to use a compressed air supply in the spark plug hole to hold the valve up........I once made up an adapter using an old spark plug, just never got round to trying it.
Second way is to get some non fraying rope and push as much through the spark plug hole as you can, with the piston at BDC, and then turn the engine to compress the rope.
As I say I can't vouch for the merits of either method as I haven't done it.