Computer

If someone goes to in-person mental health program, they can deduct the expense of miles but if someone has to buy a computer for an online mental health program, can they deduct that expense (assuming they itemize theie medical expenses).