No. You must distribute the 3 to the n and 6 on the second formula.
3n+6 and 3n+18 is not equivalent.
9.5m questions
12.2m answers