No, because there needs to be a third angle.
In a triangle, the sum of all interior angles must equal 180 degrees. If a triangle had two right angles, that would be 90 + 90 = 180 degrees, leaving no room for a third angle, which is not possible in a triangle. Therefore, a triangle cannot have two right angles.