Yes, you can build muscles with a machine. Your body will not know the difference between free weights and a machine and it will develop muscles as long as you are doing resistance training. However, for best results, you should incorporate both free weights and machines in your workout.