Answer
Yes, they must be the same.
Work Step by Step
Empirical formulas tell you the simplest or most reduced ratio of elements in a compound, therefore two molecules can be different and have the same empirical formula such as NH3 and N2H6. However, if they also have the same molecular formula, it means they have the same number of each element in the same ratio so they are the same compound.