Vaccine

Hey y’all weird question but I’m getting my second shot on the 22nd and I have a surgery on the 18th. Just wondering if this could affect the effectiveness of the vaccine?