Sometimes, yes! See: https://www.health.harvard.edu/blog/placebo-can-work-even-kn...
But they're probably more effective if you don't know.