I was going to argue that they lost most of the 2019 profit in 2020, but you are technically correct (the best kind). Twitter probably made around $1.5B in profit ever, maybe a little more. That actually should just about cover the cost of building the company.
Twitter was profitable in 2018 and 2019