You should discuss and comes to a decision with your spouse. Ultimately, end day spouse has to give you support mentally, physically and emotionally esp after birth period. If during the confinement period is the time of no visitor and just recovery mode for you and resting mode for baby/you. Your spouse has to support you. Not to go against your PIL but if it is for the safety of NB then you should.
Previously, my first born at 3 months old was contracted with Influenza A sort of sickness from adults like cough, flu, etc. So at her age no medication nothing at all. She went through fever, dehydration and therefore admitted for 3 days.
So, when it comes to my second born I am very wary. Though I have my older parents, people that smoke. As much possible Ill ask them wash hand, sanitize, etc. And no kissing on face, cheeks, lips, etc.
And I dont allow any outsider to visit except PIL. I am glad at this point my second born didn't fall sick except once due to fever due to viral infectious months back.
All my cousin, relatives, aunts/uncles, friends only manage to see my second born after confinement and during the festive Hari Raya period.
Also, I posted on social media platform of mine that no one should be kissing, hugging, etc baby during the festive visiting. I sort of hinting to them so that they know and to avoid any unnecessary sickness affecting my second born.