Wales should "learn" from the SNP's successes in Scotland, according to the man who could well be the next first minister of Wales.