An Idaho Falls man has accepted a plea agreement after he was charged with trafficking fentanyl pills in July.