Yes, but you must obey any restrictions imposed by the state that issued your permit and any New York State rules in place.
And what do I do if you intend to return to your home country and need my international driver's license?
In that case ask the test drive examiner how to make sure your foreign driver's license is not destroyed.
I see. I'd like to know if I choose to get a New York driver license what will happen to my foreign driver license?