Yes, you can. You can get a job while in medical school, but the bigger question is whether you should.  This answer is neither simple nor easy, but it does require you to think about your own situation and goals.