If a ball is fired at a rod pivoted at one end and the ball sticks to the rod and the ball-rod system rotates, then how does conservation of linear momentum work? There was linear momentum before, but after the collision it is all angular momentum? Does that mean the conservation of linear momentum is not valid?

Your moment changes when the ball sticks, you now have the originalmoment of inertia + massball*lengthrod^2