Can pregnant women eat egg yolk?

S • mama to a babygirl 💗 expecting baby #2 in May 💞

I know we can’t have raw eggs, but i wasn’t sure if egg yolk counted as raw egg or not? Like if you make a sunny side up egg, can you eat the yolk? or does the yolk have to be cooked?