Early exposure to tetrahydrocannabinol (THC), the main active component of marijuana, can affect immune system development, leading to immune-related diseases in adulthood.