Yes, retained profits can sometimes be factored into a buy to let mortgage application, especially for limited company directors.
Not all lenders will consider this, but those who do can allow you to borrow more based on the overall financial health of your business.
Clear and accurate business records will make this easier to present.