Yes, the order of exercise is important. You must warm up before you do any exercise otherwise you risk causing yourself injury and discomfort. There are lots of excellent cardiovascular warm-up activities, which is why lots of people start with cardio before moving on to weight training.