Yes, the rent that has been paid throughout the year should be entered in payments related to your principal residence which can be found in Ontario trillium benefits.
Below is the list of what should be entered in each detail asked: -
Address: - Enter the address of the place for which you paid rent
Number of Months: - Give the number of months you lived there
Amount paid in 2021: - Enter the amount paid by you for the total year as rent for this place
Payment Type: - Select rent under payment type
Name of landlord: - Enter the name of the landlord