Morning lark or night owl? The science behind workout timings

Most people generally have a preference for when they want to work out, but does the timing of your exercise really matter?