No. You have to prove that there exists a bijection between the sets
##A_1 \times A_2 \times \dots A_{n-1} \times A_n## and ##(A_1 \times A_2 \times \dots A_{n-1}) \times A_n##, by giving an explicit bijection, or deducing the existence of such a function by other things you know.
These sets are not equal. The former contains elements of the form ##(a_1,\dots a_{n-1}, a_n)##, while the latter contains elements of the form ##((a_1,\dots, a_{n-1}),a_n)##. Formally, these are two different elements (but through the bijection you have to find, you can identify the two sets)
Always, when given such problems. Try the most obvious thing you can think of! This is:
Define ##f: A_1 \times A_2 \times \dots A_{n-1} \times A_n \to (A_1 \times A_2 \times \dots A_{n-1}) \times A_n: (a_1,\dots a_{n-1}, a_n) \mapsto ((a_1,\dots, a_{n-1}),a_n)##
Can you tell me why this is a bijection?