I moved in with my brother who has carpet through the whole house. Andy is fine. No accidents and I even have a girl foster dog she hasn't gone in the house either. So for me I have no problem with carpet and dogs. Now if it were a puppy I might be a little more careful. But the enzyme cleaner will clean up pretty much anything.
And if they aren't quite trained there are always belly bands for boys and panties for girls so they can be with you and still be ok for short periods of time .