Question: If you want to remain legal, things need to be ordered like this: you get a license first, and then you open your business. 
Answer: yes