Both of these are different ways to get the same information: has someone ever been to a particular museum before. Either way is grammatically correct. If I had to say how they are different, I would say that they emphasize different things or might be used in different situations.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.