Starting birth control

When is the right time to use birth control weeks before or after your period?