Spark Core vs Spark Photon

So I have ordered a Spark Photon. Will I have to change my code for the photon or projects(possibly different pin output).

That depends largely on your project.

If you only use standard functions like pinMode() and have used the #defined pin “names”, you won’t have to change anything.
But if your are using more bare mettal access like direct port writes or some close to hardware libraries, you’ll most likely have to rewrite some portions of your project.

So without knowing your project this question can’t be answered conclusively.