Hi,
yes it is possible to work all that you want - at the same time as you study or not - as long as you don't receive Unemployment benefits ("dagpenge").
The completion of your education will give you right to receive dagpenge according to the graduate rule. According to the graduate rule, it dosen't matter if you have worked during studies or not.
But you must be aware that to avoid the 3 weeks quarantine for selfinflicted unemployment, it is very important that you have termintaed your temporary job, and in fact have stopped working before you graduate.
Otherwise you must accept a quarantine of 3 weeks, before you can start receiving dagpenge. This is called self-inflicted unemployment (in danish: "selvforskyldt ledig"). You can read more about self-inflicted unemployment in this Q&A:
https://a-kasser.dk/qa/508/quit-after-signed-kasser-affect-rights-receiving-benefits
If you want to keep your part-time job after graduation, it will be a option for you to receive supplementary unemployment benefits (in danish: "supplerende dagpenge"). You can read more about supplementary benefits in this Q&A:
https://a-kasser.dk/qa/666/part-time-together-with-supplementary-unemployment-benefits
You are welcome to comment here, if you need further assistance.
Best regards,
Anders Weber, www.a-kasser.dk