Will my hands stop shaking if I stop masturbating for a while? Please help me docs!

No. it does not sound like it should be connected so no medical reason it should.
Get evaluated. Enjoying your body doesn't cause tremor. A neurologist should evaluate you for Parkinson's, benign familial tremor and a few other entities. Especially, the latter is very common and easily managed.