Yes you can do that, but you need to be there early. Civil Registry is between 9am-12nn only. After that you can renew the passport with your married name, in the same day provided you have all the requirements needed.
For the requirements, please visit newyorkpcg.org
Thanks! Your answer is awaiting moderation.