Plants grow different roots in water than they do in soil.
But don't worry; plants propagated in water easily adapt to soil growing conditions once potted up.
Just make sure to be extra careful when transplanting. Water roots are usually more fragile than soil roots.
The reverse works as well. The roots of soil-grown plants can be washed and placed into a DWC (deep water culture) system, an NFT (nutrient film technique) system, or an aeroponics system.
As long as proper water and oxygen levels are maintained, plant roots will do their thing under several different growing conditions.