love and relationships

Me and my boyfriend for 5 years and we were ttc, but I recently found out he cheated (it isn't the first time either) and I forgave him but days after we had a threesome with another girl. Was I wrong for that? Why?