I've designed a level with high poly models & textures,not optimized.Can I optimize it with programming?

I"ve designed a level with highpoly models.Can I optimize it with programming ?

Oh, and for textures, just use MipMaps in the texture settings (Texture, Not Material!)
Here’s a docs link

What about using LODs? they have a section in the static mesh window and allow you to lower the Base LOD as well as generate new LODs if you havent already made them.

Heres the official docs on LODs: Creating and Using LODs | Unreal Engine Documentation