Yes, you can use margarine or any vegan butter you would like and the process will still work for croissants. The high fat in regular butter is important to create the crispy layers, therefore using vegan butter will not produce super flakey layers, but margarine can still produce good puff pastry.