Usually yes. Published pricing reduces enquiry volume and increases enquiry quality, because prospects self-qualify before contacting you. It also makes your pages substantially more useful to AI systems answering cost questions.
A range with the factors that move it is sufficient — an exact figure is not required.
Hidden pricing is often a mechanism for pricing the buyer rather than the work.
Cost questions are among the most common commercial prompts; having no answer means someone else supplies it.
