PT Alpine Flea and Bed Bug Aerosol is not labeled to treat for Carpet Beetles. We would recommend a product like Bedlam Plus that is labeled to be used for Carpet Beetles.
When using PT Alpine Flea and Bed Bug Aerosol for bed bugs you would not treat entire floors, but direct the spray to the cracks and crevices around rooms where bedbugs are known to harbor as directed on the product label. There would be no issue sweeping/vacuuming an area once it is dry.