Can I run MAVROS and MAVSDK at same time?

Hello,

I have already run a mavros node and communicated with PX4 sitl+gazebo. Then I tried to run the mavsdk, it cannot connect to the drone. So can I run mavsdk to get the mavlink message while still running the mavros node?

Thank you.