Only if one is a Protestant.
Seriously, for Catholics you either agree with the Magisterium, in which case you are in ‘communion’ with the Church, or you disagree with the Magisterium, in which case you are in ‘dissent’ with the Mother Church (see the definition from Rome I posted earlier) on a life issue. You can’t both be in full communion and in dissent at the same time.
This particular dissent does not rise to the level where the ordinary can deny you communion for publicly endorsing it (because a licit application is at least theoretically possible), but the teaching is not “optional” (the local Catechism is binding).
Think about it this way, can a Catholic freely agree and disagree with the Church on abortion?
Dogmatically, the answer is no, direct abortion is always a grave moral disorder. This is infallibly held to be true by the universal agreement of the Magisterium (Evangelium Vitae). The foundation of this is also dogmatic, life is the inalienable right of every human person that cannot be rightfully abridged (Gaudium et spes).
Now, let’s say a Catholic not only supports the death penalty, but believes that it is rightful for punitive reasons, that the guilty deserve to pay with their lives, or that society has the right to use the death as a deterrent to others…
Once someone goes from disagreeing with the Church on licit application of the death penalty using the Church’s standards to disagreeing with the Church on the underlying concept that the death penalty can only be used if there is no other ways to protect others, it is no longer just about the death penalty. That Catholic does not believe in the foundation of our belief about abortion. That is, the Catholic no longer believes in life as an inalienable right of the human person. They may, personally, oppose abortion too, but they are not really in communion with the Church on that teaching either because they reject ‘every stage, every condition’ (Christifideles Laici)
This is the reason I keep making this ‘complicated’. The ‘simple’ answer isn’t what the Church teaches. Certain lay groups, yes, the Church, no. ‘Moving the goalposts’ is human nature, but Catholics are called to do what is right, not what is easy. And, as it happens, ‘Moving the goalposts’ is one of the problems that the Church is concerned about (see Donum Vertatis which I linked above). Because doing so publicly and aggressively means that the dissent is no longer just a spiritual danger to oneself, but also to others while undermining the rightful apostolic authority of the Church.
Peace