You can install Mojave on a different partition (make sure you understand the differences between partitions, containers and volumes). But I would recommend on an external SSD. BootCamp (which is for Windows) has nothing to do with it.
But easier (though not ideal for some graphic intensive apps) is to use VMware Fusion to install Mojave in a virtual machine. Then you can run your 32-bit apps without having to reboot.