Quite possibly - depending on how good your surgery was.
You must bare your left breast and right leg to the knee. The purpose of which is basically to prove you have male body hair and no breast development (or indeed obvious scars from surgery).
There are other items also, but the main point is that as masonry, like any such discipline and fellowship, is built on the principles of trust and honesty, there would be those in lodge that would regard any attempt to deceive about your history as proof that you were an unworthy candidate. From what I know I would guess that some lodges might accept your situation post-operatively, as indeed there were some womens lodges who were in theory willing to accept us, had we chosen to tke them up, but the price would be full and frank prior disclosure, offered freely, but discretely to the appropriate people.
Be in no doubt such organisations do make extensive enquires into the background and circumstances of candidates and if you attemped to gain entry without dsclosure there is a very good chance that your, as some would see it, "lack of candour" would be uncovered and you would then be black balled.