Yes, these two phrases have the same meaning. They are both correct as well.
However, it is probably more common to say "My eyes were closed."
For example, "I didn't see you walk in the room, my eyes were closed." It is correct and means the same thing to say, "I didn't see you walk in the room, I had my eyes closed."
Both are good!