Absolutely! Sorry for the late response i was on a vacation heres the code it's from garbaj video:
If event is InputEventMouseMotion and Input.get_mouse_mode() == Input.MOUSE_MODE_CAPTURED:
rotate_y(deg2rad(-event.relative.x * Mouse_sen))
camera.rotate_x(deg2rad(-event.relative.y * Mouse_sen))
camera.rotation.x = clamp(camera.rotation.x, deg2rad(-80), deg2rad(80))
All of this is in the _input function