Yes, you can combine like that.
Regarding "halt", keep in mind two things...
1) If you don't need to halt the script, don't. Halting when it's going to halt on its own is not necessary.
2) If you're just trying to end a script early based on something that happened (an error or not matching something, for example), use RETURN instead of HALT.