Is it ok to eat store bought potato salad?

Is it safe to eat store bought potato and macaroni salads? FTM here so I'm unsure...I've been avoiding it throughout my pregnancy so far but it's starting to get into the season where BBQ's are happening and I know with my family that potato and macaroni salads are a staple lol. So I wanted to know if they are safe to eat. I'm currently 25 weeks along.