Yes, this is an important part of how sub-events work. From your example:
Enemy var = 1 - all enemies with var = 1 are picked
---- Enemy X > 500 - of these it's further filtered down
---- >> Do this
For the next subevent it returns to all enemies with var = 1 picked
---- Enemy X < 500 - of these it's further filtered down again
---- >> Do that