By delivering the drug to the intended cell location, the use of nanomaterials in the drug delivery system may influence how the patient receives the medication and may assist in mitigating severe side effects. Density functional theory was used to assess the use of boron carbon nitride nanocages (BNCNCs), boron nitride (BNNSs), and boron carbon nitride nanosheets (BNCNSs) as melphalan (Mln) drug carriers in both the gaseous and fluid phases. We systematically examined the dipole moment, density of states, frontier molecular orbital, and optimal adsorption energy to understand the targeted drug delivery potential of these nanostructures. Adsorption energy analysis revealed that in both gas and water media, Mln drug adsorption takes place spontaneously on all the conjugated structures. The occurrence of adsorption energy as physisorbed energy suggests that the process is reversible, and desorption can take place with a much lower energy input. This physical contact is appropriate for the unquestionable unloading of Mln medications to the intended location. The reactivity is higher in BNNSs and BNCNSs, while the stability is higher in BNCNCs. The recovery time shows a shorter time for BNNSs and BNCNSs, while BNCNC shows a potential desorption time in higher temperature. These conclusions are corroborated by the results of the quantum theory of atoms in molecules (QTAIM). After the interaction analysis, it was observed that the BNCNCs can act as potential carriers for the melphalan. From dipole moment analysis, all three nanostructures show a high hydrophilic nature but quite higher in BNCNCs after doping in both media. Overall, all the structures show the potential carrier for melphalan drug. The quantum mechanical approach, or DFT, has been used to study the fundamental structural, electrical, thermodynamic, and other aspects of proposed structures to develop an acceptable Mln drug detector. The adsorbate and all adsorbents were optimized via the hybrid B3LYP functional and the 6-311G + + (2d, p) basis set approach prior to the adsorption process. The Gaussian 09 package was used at 298K as the constant temperature and 1 atm as the constant pressure. The structures are examined using the same functional models for solvation analysis-6-311 G + + (2d, p) and B3LYP-as well as the polarized continuum model (PCM) model as the foundation set. Density of states was studied using GaussSum 3.0 software. The interaction studies QTAIM and RDG were studied using VMD and Multiwfn software.