Do you need to have a southerly facing roof to benefit from solar?

A relatively southern facing roof normally produces more power however an East / West roof can be used and even a Northern roof if the pitch is shallow.