according to your symptoms it is appearing that,
you got fever with chills because of urinary tract infection
and probably it has spread to upper urinary tract also causing pyelonephritis
as both these conditions are dangerous in pregnancy
which can lead to preterm labor
and can also affect the health of mother and baby you have to consult your doctor as early as possible and take treatment for it.