Yes you have to follow the code format. We have that limitation because we want to challenge people and because if we didn't have format guidlines, you could technically write your entire game on one line using GML. Thanks for asking!
If you do decide to use drag and drop, we will convert it to gml to check and see if it's still less than 100 lines with the proper format. I don't recommend using drag and drop for this jam.