You can train yourself to hold more urine and not feel the urge to run to the bathroom as often. If we give into the urge all the time we have to answer the call more. Have you ever noticed that if you get distracted the urge will eventually pass?
You may have an overactive bladder that needs to be checked. Try to limit lrritating fluids such as caffeine, soda, etc.