No, you can not use both yajna and dana for any donation. For any kind of donation where you give something completely to someone else, you can use the word dana but not yajna. Dana and Yajna are two different things. That's why they are mentioned in separate verses. The basic difference is as below:
Dana is generally the activity of giving something away completely to a proper receiver. That something can be any physical object like money, food, etc. or non physical object like boon, knowledge, etc.
Yajna is generally the activity of burning something away in a specific way with a form of fire for God, gods, manes or the Self. When fire sacrifice is performed with physical fire and physical objects for higher beings (gods, manes, etc.) it is known as dravya yajna. When ignorance is burned away with fire of knowledge it is known as jñāna yajna. When past karma is burned away by the fire of austerity it's known as tapa yajna, if it's done by regular study of scriptures it is known as swadhya yajna and so on. Thus there are different types of yajna done for different purposes (BG - 4.32).
However, it is noteworthy that in many fire sacrifices (drava yajna), dana is also accompanied. After the completion of yajna, money, land, etc. are donated to the priest. The yajamana(host) may also donate food, cloth, etc. to the attending public. So even though dana is a separate thing, it is mostly accompanied in yajna. But the words should not be used interchangeably. From the Christian point of view, charity is same as dana, but not yajna.