Do You Need Speakers to DJ? No — Headphones Can Be Enough
How far you can get with headphones only, and when speakers become useful.

The short answer
How far you can get with headphones only, and when speakers become useful. The right choice depends on your equipment, intended use and how much complexity you actually need.
Headphones can take you surprisingly far
You can learn track preparation, cueing, beatmatching, phrasing and many transitions using headphones alone, especially if your controller or software lets you blend cue and master signals.
Speakers become more useful when you want to practise room monitoring, set levels from a distance or prepare for performing through a PA.
Do not delay learning because you lack speakers
A pair of expensive speakers is not a prerequisite for starting. Use safe headphone levels, learn the core controls and add speakers when they solve a real need. This is often a better use of a beginner budget than buying weak speakers simply to tick a box.
Add speakers when your practice needs them
If you are ready for room monitoring, choose compact powered speakers for home use rather than event PA equipment. If your goal is mobile gigs, treat the PA as a separate purchase and size it for the venues you expect to play.
A useful headphone-only practice routine
Use the headphone cue controls to listen to the incoming track, then use the cue/master mix control or software equivalent to compare it with the playing track. Practise setting cue points, counting phrases, matching tempo and making short transitions without relying on room speakers.
Recording practice mixes is especially useful in a headphone-only setup because playback later gives you an objective check on level changes, phrasing and EQ decisions.
Speakers become valuable when you need room perspective
Adding monitors lets you hear how the master mix behaves in the room while the headphones are used for pre-cue. That separation is closer to a conventional DJ booth and makes it easier to practise taking headphones on and off during a transition.
You still do not need high volume. Small powered monitors at sensible level are enough for most bedrooms. The point is to add a second listening perspective, not to recreate a nightclub at home.