Maybe but there would be other symptoms if you had an infection like burning, itching, urgency, pain.
Is your blood sugar under control? When blood sugar is very high and uncontrolled, it sometimes spills into the urine creating that sweet smell.
You should see you doctor to see what's going on.