Should I disclose my autism at work?

Hi,

Should I disclose to HR that I am autistic?

I was only diagnosed last year. I have been struggling lately and I have been absent a lot. I am scared that they might give me a disciplinary or something.

Any advice would be deeply appreciated