You can absolutely use a buffer on hardwood floors. Just ensure the manufacturer’s instructions for your cleaning tool of choice say it’s appropriate for hardwood. If it’s not, it could further scratch the surface of the wood while you’re cleaning and do more harm than good. Hardwood floors should be buffed to extend their lifespan (which will save you a lot of money in the long run).