Many years ago I got a flat because the tube was mounted in the wrong location so that the stem was pushed sideways in the hole. Not sure if that can happen with modern rims, but that's one thing I've been careful about ever since. The valve nut can be helpful to keep the stem straight while mounting/inflating the tube.