Yes, you can. Using a carpeted floor has both its upsides and downsides. Nonetheless, so many people use carpets on the garage floor. It makes the floor soft, works as an insulator, absorbs the noise, is easy to vacuum clean, etc. On the downside, chemicals can damage the carpet over time, and it's difficult to remove the oil and grease mark from the carpet.