Yes, although it is a mixed conditional. This phrase might be said by judge, for example. Some crime was committed in the past, whereas the hypothetical punishment is in the future.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
New2grammarIs the above correct?It's fine. The time of the speaker's utterance is between two events -- one in the past, one in the future.