My own Mathlab code instead of SGP4

I have some questions.

Is it possible to use my own Mathlab code instead of SGP4 to determine the orbit of the satellite in Gpredict?

If I could, what would I do?