Can an opposing attorney be a witness against you?
Sometimes yes. Sometimes no,
The answer completely depends on the detailed facts of a particular case, which you omitted in your post.
Yes.