Pains

Me and my bf tried to do doggy style and afterwards my stomach and hips hurt for a few days afterwards. Is it bc were doing something wrong?