Yes, all spikes fit all track shoes (assume you are using track spikes), but the question isn't if tehythey all fit, the question you should be asking is "what kind of spikes should I use in my track shoes?". If you are running distance, or even middle distance, you want short spikes.
The actual size will vary, depending on your shoe. Some shoes have a recessed socket for the spikes, others have one that extrude from the bottom of the shoe. If the socket is recessed, you may want a pike that is 1/8" longer. Typically a D or MD shoe should only have a 1/88" - 1/4" spike. You're not running as fast, and though you are on your toes, it's not quite thathe same as a sprinter. Still, as a sprinter you don't want long spikes. Longer spikes can cause you to catch your toe and send you head over heals.
Javelin and Cross Country typically mandate longer spikes.
The only thing you have to worry about spikes from a compatibility standpoint is the way you install the spikes. There are two different types of spike keys based on the types of spikes. Some are hex and others are a simple wedge. If you have both types of spike keys you do not have to worry about this. However the threads of the spikes will all be the same.