Is this dangerous for the baby

I have what they are saying is cellulitis on the back of my knee and it’s spreading clear down my leg causing them to swell up. I started cream but is it considered dangerous for the baby?