If your roof faces south, east, or west you will be absolutely fine!
Southern-facing roofs have the greatest performance and will produce the most energy.
If you have a north-facing roof you can still have solar panels installed, however, they will not be as efficient as the direct sunlight will not hit.