In theory you can use any solenoid. They are a relay that switches a large current to the the starter motor in response to a small control current. All that needs to be correct is the OUTPUT to the starter motor, other voltages (input to starter) are negligible.
So, another way of telling is a solenoid from another machine will work is to check if the starter motors are the same or same voltage etc etc.
It’s all well and good me saying the above, I have used different solenoids on other trucks, 4x4s and cars but I replaced the solenoid on my 300 for a used like for like part.
Hope this helps.