The turn phases aren't strict. It's really a suggested order, so that you take every action that you can per turn. It shouldn't affect your turn or gameplay if you do the attacking before purchasing.
Ah OK. The reason I ask is because it makes a big difference in regard to Pendulum Snipers since you can bring an enemy unit down to 2 by attacking it before playing the card if turn phases aren't strict.