Well, I believe so but you would run in to problems when trying to submit the Game on Itch.io, you would need to put a url with the Scratch Game
in the Description. But you are free to use whatever you want. Quote from jam rules: "Apart from that you are allowed to use any game engine or framework"
And Scratch is a sort of Game Engine