Will this setup cause a fire?

ignoring the law, can that setup 'technically' work without overheating?