It is a test of the spacecraft. They need people onboard to test all the human systems. But yes, if this was a purely scientific flyby and not part of a larger manned program, machines would do it fine.