Yes, but they can only see black and white when they do this. Sharks' pupils are circular, which means they can only tell the difference between bright and dark spaces. When a shark is sleeping with its eyes closed, it might see black and white images because its lens doesn't change shape for focusing as ours do.