Is this possible? Or do I have to do 2 separate rules?
It's possible, but what can be done really depends on what you are trying to do? Can you explain how you want to automate sunrise and sunset?
You can also do this very easily with Simple Lighting.
One rule in RM would look like this: