Job issues

is it ok to leave a job if its hurting me mentally? i feel so burned out already.