Diet Coke has zero calories so it can't directly cause you to gain weight. But
I seem to remember reading somewhere that people can eat more calories after/while drinking diet soda than they might otherwise intake when not drinking it. Something about how the sugary taste encourages a bigger appetite or something like that.