You can sprint in long jump spikes, as they are developed in a similar way to sprinting spikes. The main difference is sprinting spikes force the athlete to run on the ball of their foot. Whereas the long jump spikes offer some more flexibility.
The difference when both of them are used is negligible. Your body’s conditioning will contribute more towards your performance. And the level of comfort in the shoe will provide you with will be your choice.