Can a displaced rib cause you pain when you swallow food?

Yes. Any intrathoracic movement or pressure such as swallowing, deep breaths or coughing can cause pain if ribs are fractured or dislocated.
Possible. If the rib impinges on the esophagus then yes. But this is unlikely. More likely you can experience pain when breathing deep.