Is it legal to overtake and pass a vehicle on the right?

According to the Highway Traffic Act, no driver shall overtake and pass another vehicle upon the right,
(a) when the movement cannot be made with reasonable safety; or
(b) by driving off the roadway.