Yes, in general, you can do that. Some of the cases have two or more writes (sensor set up, for example). You have nothing in the program which forces one to occur before the other. If the order does not matter, there is no problem. If order is important, it might be better to put each in a separate case.
Lynn