Yes. Most triathlon federations have rules that allow participants to rest during the swimming segment. You can relax by standing on the bottom in shallow water or holding onto buoys or stationary floating objects in open water. If you rest, you must not make any moves to forward your progress - this will get you disqualified. You can raise a hand if you need assistance, but remember that this will remove you from the race.