No, it is derived from the word enginour (“one who designs, constructs, or operates military works for attack or defense, etc.; machine designer”.
Later, it became associated with engines; specifically, coal-fired steam engines in factories and, yup, trains. As a parallel example, a...