Get your taxes done using TurboTax

So when filing for my extension, if I payed $5000 in estimated taxes for 2023, and my federal refund was $2000, does that mean the actual refund I was due was $3000?  And is that the number I should now report on my 2024 taxes?  Does the same go for state taxes?