Yes, both appeared in Batman Forever (1995)—but they never share a single scene together.
The film structures its villains on parallel tracks: The Riddler operates from his island fortress, manipulating Gotham through technology and media, while Two-Face conducts physical crime sprees. Their storylines converge only in the final act's chaos, but the actors have no dialogue or direct interaction. Director Joel Schumacher essentially directed two different villain movies simultaneously.
Reports suggest Carrey and Jones had a strained relationship during filming—Jones reportedly found Carrey's manic energy disruptive, while Carrey's improvisational style clashed with Jones's methodical approach. This off-screen tension may have reinforced the script's structural separation.
So while they're co-stars in the same Batman film, they're effectively in separate movies until the climax.