Correct. Here, 5q means that q is being multiplied by 5. Dividing q by 5 is the inverse of multiplying by 5, and gives us q by itself.