OBS can record whatever audio is sent to a virtual device like iShowU or SoundFlower. If your DAW can send it there, or to an aggregate audio device created by MIDI setup that includes that virtual device, then you can.
If not, it may be useful to use 3rd party software like LoopBack that provides more advanced routing possibilities, including per-track routing and multiple arbitrary virtual devices.
Get all the power of a high-end studio mixing board, right inside your Mac!
rogueamoeba.com