You can, but you will have to take some "special care" while doing that. Main thing is that rae is rvc3 device so you will have to use relevant branch for those devices.
I would suggest using already published docker image for rae-ros which already has relevant depthai versions installed.
Here is the package
You should be able to run it with 2 following commands, first one is there only to let docker use your screen:
xhost +local:docker
sudo docker run -it -v /dev/:/dev/ --network host --privileged -e DISPLAY --entrypoint /bin/bash -v /tmp/.X11-unix:/tmp/.X11-unix ghcr.io/luxonis/rae-ros:v0.4.0-humble
Using docker as sudo may not be necessary depending on your setup. Let me know if this works for you.