Yes, as you have found out, two same sex birds in captivity will bond as if they were a male & female, and often they will mate, and if both females, one or both may lay eggs.