Yes, many vacuums are designed for versatile cleaning and can be used on both carpets and hard floors. However, it is important to check if the vacuum has adjustable settings or attachments specifically designed for different floor types.