It can be done, but the plant will go through some shock. There's a significant difference in how the roots develop, whether it was in water or soil. Water roots, which develop in you, guessed it! Water!, are thinner and more delicate, designed to efficiently absorb oxygen from the water. Soil roots, on the other hand, are thicker and tougher, adapted to extract oxygen from the air pockets within the soil. When a plant is transferred between these environments, its roots may need time to adjust or even be replaced by the appropriate type. Make sure she gets lots of oxygen; she will be ok. Soil roots typically don't thrive in water because they are adapted to an environment with air pockets for oxygen exchange. Water roots, on the other hand, have specialized structures like thin hairs to absorb oxygen from the water.
Doesn't matter if it's auto or photo; roots don't care. Automatics have a higher consequence when time that is better spent growing is lost to stress.