Yes, you can be a complainant (Victim) and witness in the same court case for crimes like sexual offence. In other cases, the accused shall not be liable to be convicted on such evidence unless it is corroborated by other material evidence in support thereof implicating him.
Read more about the same on the Evidence Act, Chapter 80.