So one should do it for the pleasure of Allah and for the guidance and well-being of the people

Yes not to show off or gain reputation as the hadith is speaking of