New passport for h1 visa Dropbox

I booked my h1 visa Dropbox appointment but later realized that my passport is about to expire. Can I apply for new passport and take that passport for the Dropbox interview? Will there be a problem since the appointment booked with the DS160 has old PP#? Please help.

You can submit a new DS-160 with new passport # and carry the copy of old and new DS-160.