No, because there needs to be a third angle.
A triangle consists of three angles that must add up to 180 degrees. If a triangle had two right angles (each measuring 90 degrees), the sum of those two angles would be 180 degrees, leaving no room for a third angle, which is not possible in a triangle. Therefore, a triangle cannot have two right angles.