Yes, if a person needs a car and says to his friend, ‘Buy this!’ and his friend does so and owns it outright and then sells it to his friend at a markup price payable in installments, that is permissible. This is the debt which Allaah speaks about,
(يَٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوٓاْ إِذَا تَدَايَنتُم بِدَيۡنٍ إِلَىٰٓ أَجَلٖ مُّسَمّٗى فَٱكۡتُبُوهُۚ)
“O you who have believed, when you contract a debt for a specified term,
write it down.” (Al-Baqarah, 282)
This is the case if the person needs the car. In a case where he does not need the car but needs the money so he asks his friend to buy the car, and the friend does and he takes full ownership of. The person then sells it to his friend for a markup on a deferred instalment payment not wanting the car but only wanting the money which he acquires by selling it, then this is known as tawarruq and is also permissible according to most scholars.