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 (each 90 degrees), the total would already 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.