It is generally safe to touch a dog with roundworms, but it is important to practice good hygiene to prevent the spread of infection. Roundworms are transmitted through the ingestion of infected eggs or larvae, which are shed in the dog's feces. The eggs and larvae can survive in soil or other environmental surfaces for long periods of time and can be transferred to humans through contact with contaminated material. Direct contact with an infected dog's fur or skin is not likely to transmit roundworms to humans, as the larvae typically need to be ingested to cause infection. However, it is still important to practice good hygiene when handling an infected dog, especially when cleaning up after the dog or handling feces. Always wash your hands thoroughly with soap and water after handling an infected dog or its feces, and dispose of feces promptly to prevent the spread of infection. If you are pregnant, it is especially important to take precautions when handling an infected dog or its feces, as roundworm infection can be harmful to the developing fetus. Pregnant women should avoid cleaning up after dogs with roundworms and should delegate this task to someone else if possible. If cleaning up after an infected dog is unavoidable, pregnant women should wear gloves and wash their hands thoroughly afterward.