I am by no means a pro, but in my experience medium does not effect genetics as @dire wolf stated. Not talking about plant size, taste, and smell, but talking genetics. What the plant is capable of producing.
You can selective breed, but even then you will only get what the plant is...