You can connect two displays but the pi doesn't support putting different programs on separate displays. The displays will have the same thing on them.
edit: I forgot to add you need a hdmi splitter as well to get the dual monitor, but the displays will still show the same thing.
A computer is only as smart as its programmer.
Pi B rev.2, Pi 2 B, Two Pi 3 B, Two Pi 3 b+, Pi 4 2Gb, Pi Zero 1.2, Pi Zero 1.3, Two Pi Zero Ws.
I'm known elsewhere as mandrew1444