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