word-forming element meaning "before," from Old French pre- and Medieval Latin pre-, both from Latin prae (adverb and preposition) "before in time or place," from PIE *peri- (source also of Oscan prai, Umbrian pre, Sanskrit pare "thereupon," Greek parai "at," Gaulish are- "at, before," Lithuanian prie "at," Old Church Slavonic pri "at," Gothic faura, Old English fore "before"), extended form of root *per- (1) "forward," hence "beyond, in front of, before."
The Latin word was active in forming verbs. Also see prae-. Sometimes in Middle English muddled with words in pro- or per-.
1889, "write program notes" (a sense now obsolete); 1896 as "arrange according to program," from program (n.).
Of computers, "cause to be automatically regulated in a prescribed way" from 1945; this was extended to animals by 1963 in the figurative sense of "to train to behave in a predetermined way;" of humans by 1966. Related: Programmed; programming.
<a href="https://www.etymonline.com/word/preprogram">Etymology of preprogram by etymonline</a>
Harper, D. (n.d.). Etymology of preprogram. Online Etymology Dictionary. Retrieved $(datetime), from https://www.etymonline.com/word/preprogram