When is it ok to tell your family and friends?

So I'm almost 5 weeks pregnant and wanted advice. I was thinking of waiting until after my first ultrasound at 7.5weeks to share the news with my family and then telling friends at the beginning of second semester. This is my first baby.. Thoughts???