Hi, is anyone able to please help me or advise. I’ve handed in my notice to employer as I just ca...

Hi, is anyone able to please help me or advise. I’ve handed in my notice to employer as I just can’t work here anymore it’s impacted me a lot mentally. I’ve got another 3 weeks left so can I get a sick note and will this affect me? Like they can’t sack me can they? Would it affect my future reference for new employment? Would appreciate any help as I’m really struggling and work are making it so difficult for me.