Do I have to be smart to have a good life ?

I'm a senior in high school and basically all my friends get 4.0s...I don't. I get a 3.5-3.3 and I feel like I'm not as smart as my friends and it's embarrassing. But just because they're smarter than me, I'll still just as good of life right? Like when I'm married one day with a nice family my GPA won't matter. Idk I just feel sad that I'm not smart like everyone else