A man has been charged after allegedly possessing crack rock cocaine during a controlled firearm buy in Fairmont.