Can I get by with just a raspberry pi 4 connected to the machine?

Short answer, yes, see:

and

https://carbide3d.com/carbidemotion/pi