Yep, I have done it before. The weight of the car compresses it and it doesn’t freely rotate as it does with a spring compressor outside.What I learned with that front strut nut is that you tighten it down best you can without the 10mm wrench slipping. IOW don't tighten it that much and it will certainly not be to final torque.
Then after installing the strut back into the car you can torque it to final value. For whatever reason it holds still there.