Is is possible to flag the stops in gpx file itself?

I’m adding a gpx file and the app displays the route perfectly. But I’d like to add flags in some points along the route. Is is possible to add some extra metadata in the gpx file for some points which the app understands and automatically adds flags?