Yes. There are at the two basic issues, immigration and drugs, with one central core issue to both, legality. Both also involve a significant common denominator, the U.S. - Mexico border, although illegal immigrants and drugs also enter the country via alternate routes.
Re: Drugs. We (the U.S.) hasn't decided how we want to deal with it. This has been an age old problem throughout history. It looks like we've been trying to figure out, as a country, what to do about drugs, including alcohol, since at least 1920 when the 18th amendment (prohibition) passed. We've been all over the place with that amendment, the 21st amendment (repeal of prohibition), the "war on drugs", "just say no", the recent legalization of marijuana in Colorado with the federal government essentially ignoring it, etcetera. The most certain thing I can figure out is that when drugs are legalized you have more people using them and more people addicted or adversely affected by them and, even with legalization, there are significant adverse effects to society. When drugs are illegal you have less people use them and less addiction but you have more illegal/adverse activity surrounding them, more than just the illegal use of them. So, do you want to spend more of your resources on more addicts/adversely affected individuals or do you want to spend more of your resources on dealing with the criminal aspects related to keeping drugs illegal? It is a noble principle to be against a habit that will harm many people but it's very expensive to enforce that principle. I cannot make up my mind.
Re: Illegal immigrants. There seems to be much more consensus on this issue in the U.S. We (the U.S.) seems to be for immigration but not illegal immigration and there seems to be a consensus on this, at least from the polls I have seen. There are many things that could be done to improve the situation but the political will does not seem to be there. This seems to be another issue in which our elected officials have let us down.
No matter how you feel about either issue better border security is logically part of the answer even if you want to legalize drugs because even with legalized drugs the cartels will come across the border to compete. It's also logical that there is no slam-dunk, single answer that improves border security. I side with some who have posted it will be multi-factorial, including barriers, detectors (seismic, etc.), personnel (military, border patrol), by air, spotting towers, etcetera.