Co sleeping question

Not judgment please. My 1 month old has a cold and she wondered settle any other way, unless she’s attached to my boob. I’m doing all the recommendations to keep her safe (no pillows and blankets). However she’ll only sleep sideways for boob access. People cosleep and breastfeed all the time and I wondered if this was ok?!!!