Hi and welcome.
Coop first, then chicks! And don't buy a coop, most are cute, adorable pieces of junk that won't hold together, will only hold about half as many chickens as they claim, and will be a nightmare to try to keep clean. Build your own. There's a section here on coops that will give you lots of good ideas.