Yes.
Benin has prevented neighbouring Niger from using its port to export its first crude oil, as a border dispute rages between the two nations. President Patrice Talon's government is demanding that landlocked Niger reopens its side of the border if it wants to use Benin's ports. Mr Talon accused Niger of treating its neighbour like an “enemy”.
Benin and other West African nations imposed sanctions on Niger, including border closures, in a bid to force the military to hand back power to the elected government. The sanctions by the Economic Community of West African States (Ecowas) were eased in February, and were expected to normalise trade relations with Niger.
But Niger refused to open its land border for goods coming from Benin.
https://www.bbc.com/news/articles/cmm3dr2e5lqo