Yes. Due to the dangers of texting while driving, it has become illegal in many states. In Virginia, texting and driving is a primary offense. This means a police officer can pull you over if they see if you are texting and driving. A ticket for texting and driving can cost $125, and a second offense can cost $250. If it is in a work zone it is a mandatory $250 fine.
Keep in mind that if you are pulled over for texting, you could subject yourself to other issues if applicable, such as such as driving while drinking or under the influence of drugs, out of compliance registration, insurance issues, and/or inspections.
You shouldn’t text and drive for your safety and others – period. Don’t add to that risk the fines and other possible legal woes.
Keep in mind you cannot use a handheld device at all when driving (with very few exceptions such as reporting an emergency).