AI navigation on moving actor

Hello, im relative new to this so bear with me
Lets say i have a spaceship in my game and i want the ai to move in that, the ship itself moves but the things inside that define where the ai can step would be fixed, can i use navmesh volume for this or thats only for static things like landscape.
And if there is any suggestion on which direction to go im happy to hear it.