Can I do this with a flash drive?

I'm buying my nephew's laptop, it has no DVD drive but has three USB ports, two USB 2 and one USB 3. It has his name on it, I want to erase that and put my daughter's name in so I can give it to her for Christmas. Can I put the Windows 10 upgrade I have already downloaded on a flash drive and install that to this computer?

I'm assuming i can but you know what they say about assuming things, eh.