Yes.
The sentence is actually slightly faulty: it should read "we can determine not only what the fate of the Universe will be, but where it all came from." This is not because "can not only determine" is wrong in itself, but because "determine" must also govern " ...where it all came from".