I thought about a particular example, and I was wondering if there's a problem when you use "where" in a situation where the thing in question are situated on the ship and not inside the ship. I don't think it's important, but I wasn't sure if it impacted the correctness of the sentence.
For example:
A spaceship where the guns are made of a titanium alloy.