Yes, this is possible.
First, break open all three links of one of the pieces of chain.
This costs 3×1 = 3 euros.
Then join the remaining four pieces of chain with the three open links.
Welding these links costs 3×3 = 9 euros.
The total costs are 12 euros.