Can kidney infection cause miscarrage?

Yes it can. Any infection in your body increases risk of miscarriage/preterm labor. Even with asymptomatic (no symptom) bacteruria (bacteria in urine) should be treated during pregnancy to reduce risk, kidney is a much more serious infection and should be promptly and aggressively treated asap. Please consult doc--do not delay. Good luck.