Can i use 2 sensors at a time?

Hello Guys. I’m currently developing a drone with PixHawk 4. I want to use LIDAR and Ultrasonic sensors at a time. LIDAR for Height calculating. Ultrasonic for Obstacle avoiding plz help ASAP 1!1!1!1!