Hi Ashu,
Yes you would have to create two rule groups each for Actual and Plan key-figure coming from source.
When you create two rule groups the data in cube is then segregated into multiple lines based on version which you hardcode in the rule group.
Please see below document for more details -
Hope it helps.
Regards,
Amit