Correct! Anyone can baptise in the case of necessity.
Catechism of the Catholic Church V. Who can Baptize?
1256 The ordinary ministers of Baptism are the bishop and priest and, in the Latin Church, also the deacon.57*** In case of necessity, any person, even someone not baptized, can baptize,*** if he has the required intention. the intention required is to will to do what the Church does when she baptizes, and to apply the Trinitarian baptismal formula. the Church finds the reason for this possibility in the universal saving will of God and the necessity of Baptism for salvation.58
The Catechism does not explicitly forbid baptising oneself with the right intention and formula but even so, the best way to be baptised is by a real priest and then welcomed into a community of real believers.
Faith and Baptism
1253 Baptism is the sacrament of faith.54 But faith needs the community of believers. It is only within the faith of the Church that each of the faithful can believe. the faith required for Baptism is not a perfect and mature faith, but a beginning that is called to develop. the catechumen or the godparent is asked: “What do you ask of God’s Church?” the response is: “Faith!”
1254 For all the baptized, children or adults, faith must grow after Baptism. For this reason the Church celebrates each year at the Easter Vigil the renewal of baptismal promises. Preparation for Baptism leads only to the threshold of new life. Baptism is the source of that new life in Christ from which the entire Christian life springs forth.
1255 For the grace of Baptism to unfold, the parents’ help is important. So too is the role of the godfather and godmother, who must be firm believers, able and ready to help the newly baptized - child or adult on the road of Christian life.55 Their task is a truly ecclesial function (officium).56 The whole ecclesial community bears some responsibility for the development and safeguarding of the grace given at Baptism.
Edit: Which is sort of a wishy-washy answer. But if anyone knows of anything less ambiguous I’d love to see it.