It is possible for them to have repaired the ship, but stopping by an asteroid belt of the right kind, pulling in chunks of it with the tractor beam, transporting it in such a way as to break it down and feed the raw matter into industrial replication machines, turn it into the parts needed, put them/beam them into place...
A) Takes a lot of time, not moving at all even crossing space at sublight while it's being done.
B) Uses *a lot* of the ships power rapidly depleting it's deuterium and antimatter to power the systems needed, also requiring another stop to refuel.
It's possible, it just drastically slows them down.