Both. Genetics set a large part of your ceiling through muscle fibre composition, limb proportions, and tendon properties. Training still produces substantial improvement in nearly everyone, particularly in acceleration, technique, and strength.
This is why elite sprinting is one of the least democratic athletic pursuits. Reaching the very top requires a favourable starting point that training cannot manufacture.
Almost everyone can get meaningfully faster than they currently are. Acceleration responds particularly well, because it depends heavily on strength and technique. Sprint mechanics can usually be cleaned up substantially. Strength and reactive qualities are trainable in everyone. For a team-sport athlete, these improvements matter far more than a theoretical ceiling.
An untrained person with structured sprint work, strength training, and technique coaching can often improve short-sprint times by a meaningful margin over a year. Highly trained sprinters fight for hundredths. The closer you already are to your ceiling, the smaller the returns.
Genetics decide who wins Olympic finals. They do not decide whether structured training is worth your time. Sprint regularly at high intent, get stronger, train the reactive qualities, and improve your mechanics. The gap between your current speed and your personal ceiling is almost always larger than people assume.
Technique and acceleration usually offer the fastest returns, followed by strength. See Sprint Mechanics and Maximum Velocity and Acceleration: Mechanics, Physiology, and Programming.