Buying design and publishing your own code on GitHub

Hello everyone
Can I buy a regular license for the layout (for example PSD), develop it and post my code on GitHub indicating the authorship of the layout with the design? Does this violate the rules of the license? Unfortunately, I could not find the answer to this question myself

Not if it’s just a coded version of the original design ‘as is’ and not part of a new or separate project (license is irrelevant)