Can I reduce interest income by accrued interest paid at bond purchase even if the bonds haven't paid me any interest in that year?

Many bonds pay interest twice a year.  If I buy bonds in November 2023 that pay interest in February and August, I have to pay the seller of the bonds the interest they earned from August to November 2023.  But, I will not receive any interest from the bonds until February of 2024.  Do I have to wait until 2024 before I can reduce my interest income by the accrued interest paid at bond purchase in 2023?  Or can I apply the accrued interest paid at bond purchase in 2023 to interest income I earn from other sources (other bonds) in 2023?

Thanks for your help.

TS