Ken,
No , they want you to set one up but there is a way around it. See link below. What “code” do you need? Activation code? like. If that is so you can use the windows 7 code from your old PC still. ( off the sticker)
https://windowsreport.com/install-windows-10-without-microsoft-account/