Yes, it can happen after an amnio test for instance. When a small rupture occurs, the two layers of the membrane can slip back over each other, thereby resealing the opening. Anyway, our advice is that you contact your doctor as soon as possible.
Suggested for you: What Does Leaking Amniotic Fluid Feel Like? – Signs & Causes.