Certainly you could have. The only way to find out for sure is to go to the doctor. He may order an x-ray.
I have a great idea for you......how about a trip to the ER and get it checked out??? If you have a cracked rib, it will show up in a x-ray.