Yep. Pretty much exactly the origin of the Latin word that it comes from.
1540s, "contrary to nature, reason, or common sense," from Latin praeposterus "absurd, contrary to nature, inverted, perverted, in reverse order," literally "before-behind" (compare topsy-turvy, cart before the horse), from prae "before" (see pre-) + posterus "subsequent, coming after," from post "after" (see post-).