You can buy windows 10 as a downloadable copy and just use the licence you get with that to activate the install afterwards if you so desire. You get 30 days to activate win 10.
IN other words, yes, you can do what you suggested. Provided the licence matches the version you install - so don't install Pro and then buy home.