Can we show the inquiry form only on the product or category page?

Can we show the inquiry form only on the product or category page?

Yes, set the Enable for Product View and Enable for List View fields accordingly under the Permissions tab.