Deactivate plugin upon deactivation of another plugin

Yes, register a deactivation hook in your first plugin, and inside this hook deactivate the 2nd plugin using the deactivate_plugins() function