Did I break my finger.
I hit someone in the back of the head and can't move my pinky finger backwards.
I broke my arm once, if it is SWOLEN a little, and you can't move it at all without it HURTING, then you should definitely consider getting an x-ray.
No way to know, unless you get xray. Ligament may be hurt, too.
How about you see a doctor ? Nothing you told us can determine if it's broken... (This is why people are trained and certified, for questions like this)