Would it be ok if I developed my own game engine before the game jam, but worked on the game during the jam?
You can do that if you wish. Would be a hell of a lot of work, but if you think you can pull it off then by all means go ahead