There are two questions:
(1) Do we learn how to love?
No. Moral Foundation Theory, the chemistry of sexual attraction and the presence of belief in children show that what we need to love in various contexts (morality, sexuality and spirituality) we have from birth prior to any cultural influence. We do not learn how to love although culture may successfully try to influence how we express love naturally.
These are controversial positions. Those in the opposition view humanity as “rational”. They view gender as “socially constructed”. They view childhood belief as “parental indoctrination”.
If you step back from the controversies about whether love comes from nature or nurture and observe that people from all cultures seem to be able to love although they do it somewhat differently, it makes sense that culture plays a secondary role when it comes to love. We are born with a moral foundation. We are born male and female with specific sexual preferences. We are born believers. We are born lovers.
(2) Is the way we love deterministic?
No. Ironically two of these explanations from nature rather than nurture, Moral Foundation Theory and the chemistry of sexual attraction, set up situations where we are forced to make choices between competing values.
There are at least five inconsistent moral foundations in Moral Foundation Theory. Some of them favor individual rights. Some of them favor rejecting those very individual rights to support group loyalty. The moral challenge for the individual is to balance these conflicting foundations, that is, choose what the right thing is to do in current circumstances.
In the chemistry between us there are two opposing situations as well. There is pleasure encouraging us to engage in sexual activity with multiple partners. There is also the pain of breaking the pair-bond with a single partner. This again leaves individuals in situations where they must make choices.
From the perspective of determinism, these explanations are problematic on two counts. First, they are not complete explanations of what human beings will do. There is plenty of room for individual choice. Second, they force the individual to make choices. If our free will, or our ability to make a choice, is a delusion, as some determinists believe, it cannot be simply a cultural delusion. It would have to be a delusion at the level of our species, if such a concept of delusion is even meaningful. What is more likely is the belief in determinism is itself a cultural delusion.