Yes, this is the aim of this task.Approach it this way:
Condition - - - - - - - - - - - - - - - - - - - Results
1) manual switch is on. Remote off - - 1) Lights are on
2) manual switch is off. Remote on - - 2) Lights are on
3) manual switch is off. Remote - off - 3) Lights are off.
4) manual switch is on. Remote - is on 4) Lights are off.