Do yourself and the floors a favor and leave your shoes, sandals, boots and flip flops outside the house when you can.
When you wander around out of your house your shoes pick things up you may not see. Trust me when I say the bottoms of your shoes are covered in mold spores, chemicals (oils, pesticides, etc), dust, dirt and even bacteria. When you get home this stuff gets into the house and then it gets into your carpets and on the floor.
When you walk around the house with your shoes on this “stuff” gets ground into the carpet where you already have other allergens like dust mites and then also gets kicked up into the air where you can breath it all in. Keep moving around and keep stirring it all up. At some point it has the ability to get pulled into the ac system and that can create all sorts of other problems.
All of this gets reduced considerably when you simply leave your shoes outside or in the entry way of the house. Another benefit is carpets stay cleaner requiring less cleaning and that saves you money.