Yes, you can get a concussion from whiplash. The bending and twisting of the neck can cause injury with much less force than a blow to the head. And the whiplash will trigger inflammation and related symptoms.
Do you have any symptoms?
Take it easy for a couple days to allow the inflammation to subside. Then gradually increase your activity level. And introduce mild aerobic exercise after 2 days to increase the blood flow to the brain, which will improve your recovery.
Can You Get A Concussion From A Whiplash Injury?