Yes Roundworm eggs can live in your carpet and the only way of killing the Roundworms in your carpet is to steam clean the carpet really good with hot water and carpet shampoo.
Roundworm eggs are pretty hardy and can survive in just about any environment.
Shampoo and steam clean the carpet a few times with as hot of water as you can get the steam cleaner to produce.