Can you do a code injection in asp.net with Debug.assert()?

I am trying to understand code injection in different technologies.

In the case of asp.net, is it possible to be vulnerable to code injection if i am using Debug.assert? E.g.- Debug.Assert(maliciousUserInput == null);