Can intangible assets such as program code or art design apply for patents?

It belongs to intellectual property rights, but it may not be possible to apply for a patent.

1, program code, about the computer program to apply for a patent for invention, you need technical effect to apply for a patent.

2, art design, art design applied to industrial products can apply for a patent for design.