No.
Pre-workout supplements are optional.
Many contain caffeine and other ingredients.
If caffeine improves your performance and does not disrupt sleep or cause unwanted effects, it may be useful.
But you can build muscle and become fit without pre-workout supplements.