It fits, check the rules pages for more info. Every entity has a Weight/Volume Capacity, if the thing your trying to put in the other thing is less than both of those then it fits. Also, the bigger thing has to have either a Hangar bay (for vehicles) or a docking bay (for ships)