The straight answer to this question is "NO." Smoking produces carbon monoxide, which is very harmful to your health. Confining the smoke inside a roof will put you at a higher risk of inhaling the dangerous gas.
Similarly, a digital smoker is a form of fire hazard, and using it inside your apartment can risk the whole unit to fire hazards. The smell of roasting meat is only sweet when you’re eating the meat. The situation gets from sweet to sour when your whole unit smells of smoke and smoked meat.
The only slight option is to use the device on the balcony. However, this still depends on the rules in your apartment unit. Most landlords don't accept tenants to use smokers on their patio for fear of staining the unit and being a fire hazard.