Problem is you don’t know what’s causing it. I had a bass rattle yesterday on stage. Turned out to be a loose tuning key. Could equally have been the end pin, pickup or, well, lots of things.
I once had a rattle one a gig and it stopped after sort of banged the bass on the side. Didn’t return and I thought it better to leave it that way.