In short No.
this is from the shepherd book.
VALIDITY OF WRONGDOER’S BAPTISM
60. When dealing with a wrongdoer, the elders should not raise ques- tions about the validity of the individual’s baptism. If the individ- ual raises the issue, the elders may refer him to the February 15, 2010, Watchtower, page 22.
61. At times a wrongdoer will claim that his baptism is not valid and that he feels he is not accountable to a judicial committee be- cause he secretly engaged in wrongdoing shortly before he was baptized. If the elders had been aware of his serious wrongdo- ing committed just before baptism, likely they would not have ap- proved him for baptism. However, this does not necessarily mean that he did not make a valid dedication. Some individuals make a dedication long before their baptism; others have made a ded- ication shortly before. The elders are not in a position to read the heart and know for a certainty how Jehovah viewed the person at the time he was baptized. If the elders learn that a baptized individual secretly engaged in serious wrongdoing while he was an unbaptized publisher but the wrongdoing ceased before baptism, they should give counsel and encouragement. A judicial commit- tee should not be formed for prebaptism wrongdoing. (1 Cor. 6: 9-11) However, if the individual resumed serious wrongdoing af- ter baptism, the elders would generally deal with him on the ba- sis of what he has professed to be, a dedicated and baptized Christian, and would meet with him judicially.
62. There are rare occasions when it is obvious that the baptism was invalid because serious wrongdoing did not cease before bap- tism, even for a brief period of time. For example, it may be that at the time of baptism, the individual was living immorally with a member of the opposite sex or the same sex, was a member of a nonneutral organization, or something similar. If there are ques- tions, the Service Department should be consulted.