Not at all! There are plenty of methods to build muscle that don’t involve machines or even weights at all.
For example, resistance bands and body-weight exercises can build muscle just as easily as machines – it all just depends on the work you put in.
There is no one way to build muscle.