Hi Aman. Yes, you are allowed to use mouse buttons as inputs, but not the mouse position, as that’s an analog input and not a button.
You can check out the FAQ on our past two button jam for some more details, and also games for inspiration including Vimlark’s winning game.
Hope that helps, and good luck on the jam!