Yes. Steam wasn't part of the Total War series until Empire: Total War arrived, so Medieval II and the original Medieval both install and run entirely independently.
You'll just need the retail disc or a standalone digital copy rather than a Steam key.