Kind of. The Halfling trait triggers when you roll a 1. So if you rolled a 1, you could reroll first with Lucky and then if you rolled another 1, proceed to use the Halfling racial trait on the Lucky die, but you would have to use the value rolled with the Halfling racial trait. You can’t use the Lucky dice on the reroll from the Halfling racial trait because it is not considered an attack roll or saving throw but a reroll of a current die value.